santization function added