fixed transformation for val expression