add zSelect and tests