nice one, I didn't know about modulo % operator - sounds pretty useful