log prints fixed