simplify circuit and memory