adding log output;