added enter function to modes