add filterOjbect generic function back