Adjusting array contents