modified Rare.lua