mistake in diff function fixed