added filter method

closes #6