init memory