fixed a mistake in line 7