added bullet avoidance