two functions in decomposer are in shared now.