mechanism that enables a door to open and close