data pre-processing in c