removed unused error handler