add userid function by yule.ma