implemented checkboxes