bug fixes for transFn in print method and transFn usage in updateAttributes