cleans up formatting