added printing debugging