added greedy equity discard