a modify edition of andbase for myself use.