restricting function parameters + relocating entry setting