updated location of legend