checkboxes and some errors corrected