adds transitions