delete unrequired stuff