legend moved out and sizes adapted