documents array starts with 0