changed back to double