fixing messed up file