ok for sms$rank var not to be in env