all changes for rankall

final changes for rankall method