before file conversion