opens and closes