filter results object properly