changed ther reference to double too!!