add pre process for data