Endoplasmic reticulum ( ER ) is a cellular organelle which is an extension of the nucleus . The functions of the endoplasmic reticulum vary greatly depending on the exact type of endoplasmic reticulum and the type of cell in which it resides .