use pointers while memsetting