make checkboxes optional and variable