uses weighted average frequencies