clean up before creating next one