updating where inserts are applied