fixing console output