getTarget is called more than once. Use variable