add file size check