updated getFileSize, main