fix return vaules to tuple.