switches to constant