first op_exec function for processes on patterns working