adding transition method