updated code for victim