hi both,
i have re-tested with a simpliest example and the same structure of my game and …it works perfectly in this case.
i have an error in my file and it will be hard to find where the error lies because my file is very big 
here the simpliest snippet :
--background.lua local background={} local background\_mt = { \_\_index = background } --set metatable -------------------------------------------------------------------------------- -- public function -------------------------------------------------------------------------------- function background.draw( posx,posy,x,y ) local e={} --e for backgroundlua e.body=display.newRect(posx,posy,x,y) e.body:setFillColor(1,0,0) return setmetatable ( e,background\_mt ) end return background -------------------------------------------------------------------- --player.lua local player={} local player\_mt = { \_\_index = player } --set metatable -------------------------------------------------------------------------------- -- public function -------------------------------------------------------------------------------- function player.draw( posx,posy,radius ) local e={} --e for playerlua e.body=display.newCircle(posx,posy,radius) line=display.newRect(50,50,2,200) line:setFillColor(1,1,1) line.anchorY=1 function playerInMovement() xposMov=math.random(0,400) yposMov=math.random(0,400) transition.to(e.body, {time=900,x=xposMov,y=yposMov}) transition.to(e.body, {delay=900,time=400,x=50,y=50}) end timer.performWithDelay(1800,playerInMovement,-1) function getAngle(x1,y1,x2,y2) local Angle= math.atan2(y2 - y1, x2 - x1) return math.deg(Angle) end Runtime:addEventListener("touch",function(event) if event.phase == "began" then elseif event.phase == "moved" then local cx, cy = e.body:localToContent(0, 0) line.x=cx line.y=cy local angle = getAngle(cx,cy,event.x,event.y) line.rotation = angle+90 elseif event.phase == "ended" then end end) return setmetatable ( e,player\_mt ) end return player -------------------------------------------------------------------- --main.lua local player=require("player") local background=require("background") local players={} backgrounds=background.draw(display.contentWidth/2, display.contentHeight/2, display.contentWidth, display.contentHeight) players= player.draw(200,200,15) --------------------------------------------------------------------------------------------------------------