added removeAuthority function