Combine two programs to obtain new shifted positions and new processing data