split out mean formula into its own line