corrected open_door and close_door