updated print debugging