filter the res obj