add the preTag and posTag for the files