removed node type check

as the check was redundant, removed it.