Rework this code so that it does not trigger a compiler warning. NFC