some checks for correctness for multiple dimension vectors were added