simplify patterns for constants