n = obj[1] instead of [1]