Thank you dear dilettante for your nice code! it is very helpful