tidy up for variables that were no longer needed