remove unused error handling