more broken AI code