refactored loop.lua