cleans up formats