print out all solutions