getting clean and compile functions in order