a door opens and closes repeatedly