renamed parameter next to prevent shadowing of Lua next function
Merge pull request #165 from Tieske/rename_next

renamed parameter next to prevent shadowing of Lua next function