commented out python code using memory layer