find num start & end index