hair has a protective function