adding memory checker