cleaning up before branch