finish data structure