undiscard method
fix undiscard