committing a file