implementing case number functionality