reconcrete the limit num and remain function