add two scenarios when do match