adjustments to code