attempt to fix floating point error #2