simple dot product checker for intermediate nodes