remove void* cast