function definition duplicated.
function definition duplicated.
# refactored to properly handle more inlined elements. Fixed all the tests.