reading input(currently is not working properly)