zhangyuan master finish function: ids