fixed avoidance math