display.newRect Problem

I’m having trouble distinguishing between rectangles. I am trying to create a grid of rectangles 50*50 pixels. I just can’t get them to seperate. I need a gap of 10 pixels between each one.

Code:

for i = 1, gridWidth, 1 do
    for j = 1, gridHeight, 1 do
        grid[i][j] = display.newRect(0, 0, 50,50)
        
        grid[i][j].x = 32 * i
        grid[i][j].y = 32 * j
        grid[i][j].on = false
      
        grid[i][j]:addEventListener(“tap”, tappedRect)
    end
end

Sorry if this is in the wrong place. First time posting