added code for doors