check rank when processing red