added implementation of the WiDIM adaptative method