remove diff function