camera and marker preparation code added