- decompose long functions into small sub-functions - add comments - factor some code - polish out some unecessary bits and bobs