trying to transform flat form