thanks for the help, i really appreciate it, worked a treat I also need to do this: array[count + 1] array[count] returns x but array[count + 1] returns nil when i should be y am i totally wrong or is it something else? thanks -- Posted via http://www.ruby-forum.com/.