removing error swallowing