AI: tiny optimization of previous commit