setup role fucntion