add conditions