fixed an error present in denom of d1