added output transformation