speeding up the code a bit.