modernize discarding