legend works now a bit more as expected