Thanks for pointing out where the problem lay


have tested-code now works perfectly