adds mean framework