change function declaration; simplify CSS selectors