move remove overlap function to icc file