adjustments for logic