add start of interlace decomposition code