fixed up insert callback