added enter function