added transform function
wip: postprocess function