prints info in console