fixed silly mistake with reset array dimensions