add discard stock functionality