fix the existance test