setTarget method