SHLoop for loop operation