use begin/rescue/end in block