convert to Switch