write to OBJ