added the filter() method requested by @westei