hey, i got it to work using bits from the code by swoopy thanks for all your help (and sorry I didn't reply till now)