reorganized states to only keep track of toggled-off elements