initialize cam