change < to > in ai.length