transformation outline, compiles but not fully implemented