-add paired processing code