starting to do some sorting and filtering