fix class rules format