modify with cond and equal