close when u reached at entry point