remove invalid stuff from array.hpp