removed unreachable code from match case