final v.1 (two phase transform work)