Ill look into it but btw that $d5 could be valid if it contains the name of a function anyway will take a look at every thing in the morn.