printing debugging added