respond_to is a public method