lab code for decomposition