case 7 switched to case 0