Loop changes

loop changes for certain ops