added filesize assumption