min dsitance location in constant
merge romain refactoring
merge master again