looped through permission array
cleared