High nitrates can effect fish growth and generally stress the fish, which can lead to disease. 40 ppm is not horrible, but less than 20 ppm is best. If you're on well water, it could be high due to fertilizer run-off. Several filter resins are available to remove nitrates (Brightwell)