fixed some more bugs with update_predicates this time
deletion tested and working