formatting errors from code checker fixed