transitions and legend added