fix code formatting errors