typecast void * to char * to satisfy compiler