adding functions by correllation criteria