added strings to decimals in ifs