added filtering to list method