it's only stable when the temperature is within a certain range, and when the protein is dissolved in certain solvents. it keeps its shape because of hydrogen bonds between carbonyl atoms and amide atoms. within it, the protein backbone has the shape of a helix. the hydrogen bonds that hold it together go between and groups on the backbone of the protein chain and separated by four carbons.