PErmission sample modfied