first attempt at legend
working legend