take care of empty vector