if codigo is nil then return Hash.new