starting to implement rank support