added printing statements