try except instead of checking everything