put first solution as first in the file