Creating a global instance of process iterator
moved process interator inside check method