defining/undefineing shims -- adding foreach