added final memory