decomposing to files