correct mistake in api usage