in reply to Re^4: length of 1's
in thread length of 1's

You can't get that warning from that line of the code you posted.

Have you addressed the problems ree and I brought up? What's the point in continuing if you don't address those first.

Ive not posted all the code as most is not relevant

It doesn't have to be your original code but post runnable code that actually exhibits the problem. Right now, what you posted appears to be just as irrelevant to the problem as the code you didn't post.