gate value from checkbox