ungrant/undeny working properly