changed to use the bulk index