merge algo
more useful output