corrected the respond script