remove unnecessary check on pubKey