replaced camera code