Thank you both for your solutions. this is really helpful