fixing the broken selectors function