Add method to filter to support arraylist data