properly set index and persist information