These two membranes – outer and inner – are just inside the shell surrounding the albumen (white). The two membranes provide an efficient defense against bacterial invasion and are made partly of keratin. The outer membrane sticks to the egg shell while the inner membrane sticks to the albumen. When an egg is first laid, it is warm. As it cools, the contents contract and the inner shell membrane separates from the outer shell membrane to form the air cell