clean up functions and content