removed performance issue on resize