add error for callback