improve resource callable example