small mistake in function call