added input santization