tidy up transition