adding switch analog