changed TypeTransformer to ValueTransformer with new value transforming algorithm