another optimization...

sorry, only now I figured I don't need temp variable at all