found bug must limit memory allocation