cleaning up functions file