reorganize things in if_else_endif.cpp