lock rank implemented