example of changing modes