a door shuts and opens