optimize the file define