renamed main and deleted old main