added doubling arrays for void pointers