fixed bug where discard wasn't properly determined