initial commit. Add filtering functions