edit condition patter