added variables and attempted new efficiency functions. checkboxes returns null in each attempt. restored original functions.