change colptr(0) to memptr()