improved performance, works on sub main page.