first version with mandatory legend