Change Filter method from filter() to apply()