initialize memory location first