Cleaning up functions

removed anonymononus functions