bug fix, print outs