adding switch stop