- fixed typos, and clarified the filter function