memory allocation fixed