add code for custom entrance