changed N allocation order back to the way it was