implemented in_bulk method