added indices to as_dictionary