checkboxes with corresponding select dropdown values algorithmm fixed