fixing the num_electrons of CO and S