remove debugging print(x)
legend in seasfac