fixing privileges