records are now inserted in bulk