fixed struct definition and added semicolon to statements