changed auth from int to char