std::vector instead of std::array used