made a better version of targetting bug