revised a mistake in input format