thanks guys for all your help. i found my problem(s), simple counting error and typo in the code.