added the first and last filters (closes #951)