changed allocated memory to 1024