progress on discretizin the package data structure into different data types