adding discard criteria