pre new setData
pre some clean up