fixing minor issues in cases