some initialization for instantiation of mem locs, still working on