cleaned up to beginning state