apply transform when criteria reached