rename
get print function working with input and output interfaces