small modifications to a file