changed checkboxes to array