updated legendre subsystem