updating authority function