optimize answer file