change to example code, and create_file return value