changing signature of transformer function