added discard warning