can't sudo a function