added pry
refactored filter methods