test = if isNothing x then (-1.0) else fromJust x
