implementing objects avoidance