preliminary clean up