console output fixed