working on permission setting..not working yet