added first process matrix function iteration