print results done, dynamic algorithm to do