remove erroneous type check