created scope for cases