rewrite razor combinator in the new paradigm