added transformValue and documentation