better filtering for objects