add if reducer