extract uppercase method into a variable