methods to clean up data