fixed wrong inputs