changed the value of the contact switch