fixed improper use of sos var