make change_process work with patterns