little tweak for performance improvements
Credits to franciscofranco