about to implement recursive mean