added insert
fixed predicate