Use a consistent style to name variables. You are currently mixing two different styles. Change the "loot_" names to camelCase.