impemented update_target method