toCode renamed to showCode