trimming my code