add nskip_shingle subroutine.