update to latest legalcode