adding more commands for set legend