parse structures