save some memory by using shrink_to_fit on the homing arrays