add parens around variable name in sms$rank
sms__rank -> sms__rankget (api call)