fixed console log output