integrity rule validator and generator added, pt.2