update for camera focus function