fix type declaration in parser