memory allocation and abuse