added get_timestamp_from_index method