more sophisticated rank control