checkboxes function works!!!