changed store and input operator for paritioning.