add rule entity