remove unnecessary versions