add details to the file