use ruby block