added door code