add examples
refine transform function