correct ordering of checkboxes