changed to double