update .gitignore
add the transform function