how to cancel packets? (i need the code)