clean up global variables
generated up to three vars in 2m45s