removed printf in average cam