removed some old code that caused problems with selectors