using now the same ME in both codes