Faster code.

thanks Caps