repeats itself with while loop and nicer output input