change enter function