added ignore_zero flag to get_limit