stops people from entering or exiting