zhangyuan master function: all