enhanced code-by-rule; fixed missing code rules