the debugging process is confusing to me, since what I know is just some basic knowledge. I could not be able to describe it clearly. I even missed this when I went through some online tutorials. and UDF manual just mentions hooking UDF. I learnt it bit by bit. Thank you for your help in this debugging process.