changed resettarget to pointer object