assign memory space for pointer