adding transitions