added min distance from pipe