implementing discontinous ranges on legend
updating text