implemented memory save but getting fatal error