adding preprocessing