set function uid for more flexibility