extra code for checkboxes