insert with integrity working
merged