fixed the void * issue