cleans up data