remove useless var startMemory