staff id setting in tree