change char* to void*