finished the structure parser