cleans the code