adding camera code to index