trying to implement erosion