doesn't print multiple solutions without flag