replace conditional