previous code

the author of these code is Ma Yuxin