remove unnecessary typeof method