change void* to explicit type definition