shorter loop condition