working on PreProcess event