modify if_else judge