correct error creation