how to get addEventListener for a Grid of sprites(2D Array)?

Hi,
I am learning corona for game development, I have place animated sprites in a grid(2D Array of sprites), but when I put touchEvents for these sprites it gets error. I am attaching the code also Please help me.
Error: Runtime error
…ocuments/Hemanth/Projects/Waggle_Mobile/director.lua:934: ERROR: table expected. If this is a function call, you might have used ‘.’ instead of ‘:’
stack traceback:
[C]: ?
[C]: in function ‘insert’
…ocuments/Hemanth/Projects/Waggle_Mobile/director.lua:934: in function ‘_listener’
?: in function <?:531>
?: in function <?:226>

Thanks in Advance

************************* Here is the code *************************
module(…, package.seeall)
function new()

local localGroup = display.newGroup()

local gamebg=display.newImageRect(“gameBG.png”,_W,_H)
gamebg:setReferencePoint(display.centerReferencePoint)
gamebg.x=_W/2
gamebg.y=_H/2
swapButton = {} --A 2D Array
local instance = {}

require “sprite”

local tempX=130
local tempY=60

for i = 0, 6, 1 do
swapButton[i]={}
instance[i]={}

for j=0,6,1 do
instance[i][j]=sprite.newSprite(sprite.newSpriteSet(sprite.newSpriteSheet(“fireBall.png”,36,36),1,40))
instance[i][j].x=tempX
instance[i][j].y=tempY
instance[i][j]:prepare()
instance[i][j]:play()

instance[i][j]:addEventListener(“touch”,myTouchListener)
swapButton[i][j]= display.newImage(“circle.png”,40,40)
swapButton[i][j].x=tempX
swapButton[i][j].y=tempY
tempX=tempX+40

end
tempX=130
tempY=tempY+40
end

function myTouchListener:touch(event)
if event.phase == “began” then
display.getCurrentStage( ):setFocus( event.target );
print(display.getCurrentStage( ))
elseif event.phase==“moved” then
print(“moved”)
elseif event.phase == “ended” then
display.getCurrentStage( ):setFocus( nil );
end

localGroup:insert(gamebg)

return localGroup
end
************************END******************* [import]uid: 172535 topic_id: 30704 reply_id: 330704[/import]

Try moving the listener function above where you create the sprite instances. [import]uid: 93133 topic_id: 30704 reply_id: 123003[/import]

Try moving the listener function above where you create the sprite instances. [import]uid: 93133 topic_id: 30704 reply_id: 123003[/import]