scripts written by Xiaojun Wang in Qingdao institute