trying to limit memory