removed reassignment of double