fixed print debugging