Proprocessing function added