organize this mess of a file