transforming functions wip
exception handling for transformers