remove lines causing unreachable warnings