add perfomance tweak thanks faux123