set rs and expstr variables