removes a type declaration error