removing transition code