move legend to partial