added handling for infinite