cleaning code prior to testing and running