new ideal calc and correct setting of checkboxes