added limit to rank-devices