fixed wrong input