added  methods for authorization