debugging adjustments and reordering operations to make sense