use sprintf
Extract maxPenalty