made a filter function but still more to work on