the help you have been giving has been very useful ,i understood most of what you said after referring back to the paper, it clear the point that the ix, iy, and iz being > 30,000 for me after the first call. the method i used produces numbers less than 0 and greater than 1, while merri version run perfectly have no such problem. this is the main problem i have!