Removing unwanted function