made it so you can filter on any attribute instead of hard coding it