Feature/two pass mean