added checkCheckboxes