added KarPtr argument to transform