Yer i worked that out last night after remove all the code and then adding segments in bit by bit. Thanks anyway