With a CYA of 40, chlorine of 5ppm is not at shock level. Shock level would be 15ppm. See the Best Guess Chart here for the connection between CYA and chlorine. http://pool9.net/cl-cya/