fixed issues #321, #322, #324, #336, #337

fixed issues related to centers and savings..