added authorize to class