replicated print messages. this version really works