change cout to clog in log