fixes struct errors