add error methods