delete functions outside