fixed bad syntax errors. long case statements are bad mkay