fix array-specific stuff