input of empty vectors was checked