works for small files, not big