bug fix. adjusted count of params for the new 'up_to'