insertEffects: added preprocessing phase