checked and tried the code . It seems OK for me and will need slight modification which I have made.