rename all the memories to depth x width