problem with fixed vector in ED and SI functions