got changing modes to work