added tile door function