version travail
clean version but still with outofmemory problem