reinitialised files and header