filter logic of results done