fixing datatype delete