you were correct , its the hosting of the pri variable , it worked ,thanks