avoid comparison of vector/scalar