fixed memory allocation