working with double preicsion