added semantic error for permissions