The parietal eye is part of the pineal system . The animal 's pineal gland secretes melatonin at night . The parietal eye is part of the pineal complex , another part of which is the pineal gland , which in tuatara secretes melatonin at night .