successfully plotting response function