foreach transform with numerical expression