added scientifically more correct conversion functionality