added get target function