primary key is now working for rule