#12 checking for permissions