decomposing in atomic functions