fixed major bug, and tested until process-transform