sorting out variable