print function working in general D