regulates thyroid functions