corrects some formatting errors