moved a block of code above