modified Model_methods@Teng