fixed incorrect input