putting the code on a diet