reduce raw types

I usually create functions to avoid having multiple line in a try