changed split into cases function
worked on dissent function for case names