chnaged the order of execution inside the Process method