add getch fucntion