clean up formatting errors