the program I attached in the previous message had a small logic error
but I still get that same index out of range thing. if anyone has
time, this is the program to run. thanks a lot.
 
 
                                                                                Mark