updated pascal_train.m