add typeCheck prototype