fix type declaration