What is the difference in the function of the proteins and carbohydrates attached to the cell membrane?