finish staff function