removed a useless field in the memory class and changed the default assertions in two switches