implemented newline and comment selectors