right understand that diagram thank you very much will try that in the morning, only one more question I have put the sequences inside each 'case' and it runs the first sequence/case over and over again in the loop until it recognises the second press of the button. how can I modify the code so the sequence only runs once on each press?
regards
neil