rewriting law on the fly