ranks on bsd fix