destroy function styling