read user input working, returns values to main correclty