minor loop optimization -1ms