adding print debugging