added and modifeid filtering and getting of cases