modified respond_to type. fix #1.