changed printing statements