convert checkboxes to boolean