auto update role