refactoring delete not use libraries