find num start and end index