removing the format changes as much as possible