update file fix bugs