camera error handler added