finish all the cases