variables and clean up