updated preprocessing diagram