error found. allocating space beyond the heap. error should be fixed!