changed cam config code