incorrect parse text to double
remove unnecessary variables