updating info on structs and on file accessing