corrected inference to use new code