check memory issue