changed door code to adapt with admin/user doors