add rank and create Series