script for constructing ancillary sets