fix return type warning