able to loop around the commands with up arrow key