remove enter function