implement translate cond