checking ranks implemented