modify array.hpp