working on mem-block