check for instanceof, instead of matching names