prepartions for cancelling tasks