added a maxrank