Update if_train