victim for loop working