optimized discard strategy for milestone 3