used vector with {} initializer list instead of built-in array