fix return value for fun