1st commit of spare_num_optimiaztion.c