cleans code