changed C-style array to std::array