improved EM, pickle matrices