fixed build error with missing type declaration