adding possibility to choose result with arrow keys
remove gcc warning