added Mairal's code + article modif