first attempt at checking limit for total_limit