changed components.delete, main and script