kill function upgrade