change rights and mode