addressed invalid configs, refactored sequential halving
fixed err