mod to a file