mistyped colorshift
Switched order of arguments to write_file