get rid of unreachable code