add side-by-side comparison function