returning errors