restored memset