erorr checking, still persists