edit the code to use the correct syntax for smart_inject