capping maximum length of prison terms