final fix to rational number