remove unused function
authorization partially implemented