Simply code and remove unreachable check