remove strange instanceof