added missing inline() function. Then fixed class version closure parameters.